[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Function set_color - set the default attribute (color)
Syntax void set_color(byte colors);
Prototype in video.h
Remarks set_color just sets the global variable
char_attribute to colors. I got tired of declaring
char_attribute as extern in every function that
output to the screen, so I made this function.
Return value nothing.
See also putk(), putstr()
Example #include <video.h>
#include <color.h>
main()
{
set_color(RED | B_WHITE | BLINK);
/* red blinking text on white background */
gotoxy(12,40);
putstr((byte *)"Hello");
}
See Also:
putk()
putstr()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson